package com.schedule.task.schedule;

import com.schedule.task.controller.WebSocketController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class WebSocketTask {

//    private final WebSocketController webSocketController;
//
//    @Autowired
//    public WebSocketTask(WebSocketController webSocketController) {
//        this.webSocketController = webSocketController;
//    }

//    @Scheduled(cron = "0/10 * * * * ?")
//    public void sendMsg() {
//        webSocketController.sendToClient(1L);
//    }
}
